package com.lanling.eduservice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lanling.eduservice.entity.EduCourse;
import com.lanling.eduservice.entity.frontvo.CourseFrontInfoVo;
import com.lanling.eduservice.entity.frontvo.CourseWebVo;
import com.lanling.eduservice.entity.vo.CourseInfoVo;
import com.lanling.eduservice.entity.vo.CoursePublishVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author 胡振华
 * @since 2020-11-10
 */
public interface EduCourseService extends IService<EduCourse> {

    String saveCourseInfo(CourseInfoVo courseInfoVo);

    CourseInfoVo getCourseInfo(String couseId);

    void updateCourseInfo(CourseInfoVo courseInfoVo);

    CoursePublishVo getCourseInfoById(String courseId);

    void removeCourse(String courseId);

    Map<String, Object> getCoursePageList(Page<EduCourse> eduCoursePage, CourseFrontInfoVo courseFrontInfoVo);

    CourseWebVo getBaseCourseInfo(String id);

    List<EduCourse> searchCourse(String coursename);

    void addCourseBuyCount(String courseid);
}
